package me.xiaoyan.java.spring.controller;

import org.springframework.ui.Model;

public abstract class BaseController {
    public String showMessage(Model model,String message, String redirectUrl, Integer delay) {
        model.addAttribute("message", message);
        model.addAttribute("redirectUrl", redirectUrl);
        model.addAttribute("delay", delay);
        return "message";
    }
}
